<?php 
require("header.php");
require("nav.php");
?>
<?php
require("admin/conn.php");
session_start();
$Art_id=$_GET['Art_id'];
$sql="SELECT * FROM artcontent   where Art_id=".$_GET['Art_id'];
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
?>
		<div id="main">		 
            <div class="artical">
			         <h4><?php echo $row['Title']; ?></h4>
					 <p class="time"><?php echo $row['PostData']; ?></p>
					 <p class="content"><?php echo $row['Content']; ?></p>
		    </div>
		</div>
        <div>
<?php
$sql="SELECT * FROM  artr   where Art_id=".$_GET['Art_id'];
$result=mysql_query($sql);
if($num = mysql_num_rows($result))
{
    while($row = mysql_fetch_array($result,MYSQL_ASSOC))
    {
?>
                <p><?php echo $row['R_name'] ?></p>
                <p><?php echo $row['R_Data'] ?></p>
                <p><?php echo $row['R_email'] ?></p>
                <p><?php echo $row['R_content'] ?></p>
<?php
}}
?>
        </div>
        <div>
        <form name="r" action="admin/addr.php" method="post">
        <th>名字</th>
	   <input name="R_name" type="text" />
        <th>E-mail</th>
	   <input name="R_email" type="text" />
<textarea name="R_content" id="R_content" rows="50" cols="152" style="width: 300px; height: 200px">在这里写留言</textarea> 
        <input name="留言" type="submit" id="留言" value="留言" />
    
</form>
 <script charset="utf-8" src="editor/kindeditor-min.js"></script>
		<script>
			KE.show({
				id : 'R_content',
                urlType : 'absolute',
				width: '520px',
                resizeMode:0,
                allowUpload : false,
				filterMode : true,
                			items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
			});
		</script>
        </div>

<?php
require("footer.php");
?>